
<div id="isi">
    <div class="atas"></div>
    <div class="tengah">
        <div id="isidalam">
            <div class="putihatasCopy"></div>
            <div class="putihtengahCopy">
                <div class="headingform din"><?php if (isset($tipe)) if ($tipe == 1) echo 'Berita';else if ($tipe == 2) echo 'Cerita'; else echo 'Tutorial' ?></div>
            </div>
            <div class="putihbawahCopy"></div>
            <div class="putihtengahform">
                <div id="kabar2">

                    <?php if (isset($list_news)) { ?>
                        <?php for ($i = 0; $i < count($list_news); $i++) { ?>
                            <div class='berita1'>
                                <div id='tanggal'><?php echo $list_news[$i]['HARI'].', '.$list_news[$i]['TGL'].' '.$list_news[$i]['WAKTU']?> WIB</div>
                                <h1>
                                    <a href='<?php echo base_url() ?>itcourse/itcourse_con/news/<?php echo $list_news[$i]['ID_BERITA']."/".$tipe?>'>
                                       <?php echo $list_news[$i]['JUDUL']?>
                                    </a>
                                </h1>
                                <?php if(!empty($list_news[$i]['GAMBAR'])) {?>
                                <img src='<?php echo $list_news[$i]['GAMBAR']?>'/>
                                <?php } ?>
                                <?php echo substr($list_news[$i]['ISI'],0,500)?>...
                                <div class='clear'></div>
                            </div>
                        <?php } ?>
                    <?php } ?>
                </div>
            </div>
            <div class="putihprofil_ATAS"></div>
            <div class="putihprofil_TENGAH">
                <div id="bacajuga">
                    <p><b>Baca Juga:</b></p>
                    <div class="bacadong"> 
                        <?php
                        if (isset($other_berita)) {
                            echo '
							<span class="bacadong2 din">Other News</span>
                                                            <ul>';
                            for ($i = 0; $i < count($other_berita); $i++) {
                                echo '<li><a href="' . base_url() . 'itcourse/itcourse_con/news/' . $other_berita[$i]['ID_BERITA'] . '/1">' . $other_berita[$i]['JUDUL'] . '</a></li>
                                                                ';
                            }
                            echo '</ul>';
                        }
                        ?>
                    </div>
                    <div class="bacadongkanan">
                        <?php
                        if (isset($other_cerita)) {
                            echo '
							<span class="bacadong2 din">Other Story</span>
                                                            <ul>';
                            for ($i = 0; $i < count($other_cerita); $i++) {
                                echo '<li><a href="' . base_url() . 'itcourse/itcourse_con/news/' . $other_cerita[$i]['ID_BERITA'] . '/2">' . $other_cerita[$i]['JUDUL'] . '</a></li>
                                                                ';
                            }
                            echo '</ul>';
                        }
                        ?>
                    </div>
                    <div class="clear"></div>

                </div>
            </div>
            <div class="putihprofil_BAWAH"></div>
        </div>
    </div>

</div><!---end #isi--->